<!-- UserController.php-->
<?php
	require 'Admin/Model/AdminModel.php';
	require 'Controller.php';
	class AdminController extends Controller{
		public $model;
		function __Construct(){
			parent::__Construct();
			$this->model = new AdminModel();
		}
		function Adminform(){
			include'Admin/View/admin/adminform.php';
		}
    function login()
    {
      $rs = $this->model->doLogin();
      echo $rs."<br/>";
      if($rs) {
        session_start();
        $_SESSION["adminname"]=$u;
        header("");
      } else {
        header("location:admin.php?c=course&m=listcourses");
      }
    }
	}
 ?>
